﻿
namespace SignalrChat.Models
{
    public class RtModel<T>
    {

        public int code { get; set; } = 200;

        public T data { get; set; }
        private string _message;
        public string message
        {
            get { return _message; }

            set
            {

                if (code == 200)
                {
                    _message = "请求成功！";
                }
                else
                {
                    _message = value;
                }
            }
        }
    }
}
